const url = 'https://www.baidu.com/s?ie=utf-8&wd=hello'
const output = {
    protocol: 'https:',
    host: 'www.baidu.com',
    pathname: '/s',
    search: '?ie=utf-8&wd=hello',
    query: {
        ie: 'utf-8',
        wd: 'hello'
    }
}